package qw.cn.rabbitmq.service;


import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;
import qw.cn.rabbitmq.bean.Book;

@Service
public class BookService {


    @RabbitListener(queues = "xxx.news")
    public void  receive(Book book){
        System.out.println(book);
    }
}
